package dk.simonvogensen.itodo.server;

/**
 * @author $LastChangedBy:$ $LastChangedDate:$
 * @version $Revision:$
 */
public class ContactInfoDAOTestCase extends LocalDatastoreTestCase {

    public void testBatchInsert() {
/*
        TodoApi api = new TodoApiImpl();
        api.createTodo();
        List<TodoItem> taskArray = api.getTodoItemList();
        assertEquals(1, taskArray.size());
*/
//        ContactInfoDAO dao = new ContactInfoDAO();
//        ContactInfo info1 = new ContactInfo("John", "Doe", "650-555-5555");
//        ContactInfo info2 = new ContactInfo("Jane", "Doe", "415-555-5555");
//        dao.addContacts(info1, info2);

//        Query query = new Query(ContactInfo.class.getSimpleName());
//        assertEquals(2, DatastoreServiceFactory.getDatastoreService().prepare(query).countEntities());
    }

    public void testDelete() {
//        ContactInfoDAO dao = new ContactInfoDAO();
//        ContactInfo info1 = new ContactInfo("John", "Doe", "650-555-5555");
//        dao.addContact(info1);
//
//        dao.deleteContact(info1);
//        Query query = new Query(ContactInfo.class.getSimpleName());
//        assertEquals(0, DatastoreServiceFactory.getDatastoreService().prepare(query).countEntities());
    }
}